package com.rnkrsoft.suyan.config.server.services.project.domains;

import com.rnkrsoft.suyan.config.internal.enums.YesOrNo;
import lombok.*;

import javax.doc.annotation.ApidocElement;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by woate on 2018/6/18.
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CreateProjectRequest implements Serializable {
    @ApidocElement(value = "组织编号", maxLen = 36)
    String groupId;
    @ApidocElement(value = "组件编号", maxLen = 36)
    String artifactId;
    @ApidocElement(value = "继承项目", maxLen = 36)
    final List<String> dependencies = new ArrayList();
    @ApidocElement(value = "是否抽象项目", enumClass = YesOrNo.class, defaults = "2")
    String abstractProject;
    @ApidocElement(value = "是否允许推送", enumClass = YesOrNo.class, defaults = "1")
    String allowPush;
    @ApidocElement(value = "项目描述", maxLen = 512, required = false)
    String projectDesc;

}
